import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Vant from "vant";
import { Popup } from "vant";
import { GoodsAction, GoodsActionIcon, GoodsActionButton,Icon, Swipe, SwipeItem } from "vant";

Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Popup);
Vue.use(Icon);
Vue.use(Swipe);
Vue.use(SwipeItem);
import "vant/lib/index.css";
import "amfe-flexible";
import axios from "axios"; //导入axios
// 引入默认的样式文件
import "./assets/css/index.css";
//配置请求的根地址
axios.defaults.baseURL =
  "https://www.fastmock.site/mock/10ebae0845226dba6b6ea040ad33f5af/api";
Vue.prototype.$http = axios;
Vue.use(Vant);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
